<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $model app\models\User */
?>

<div class="user-data-form">
    <?php $form = ActiveForm::begin([
        'id' => 'UserData',
/*        'options' => ['class' => 'form-horizontal'],
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-lg-9\">{input}\n{error}</div>",
            'labelOptions' => ['class' => 'col-lg-3 control-label']
        ]*/
    ]); ?>

        <?= $form->field($model, 'uname')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'phone')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'money')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'credit')->textInput(); ?>

    <?= $form->field($model, 'avatar')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'job')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'company')->textInput(['maxlength' => true]); ?>

    <?= $form->field($model, 'status')->textInput(); ?>

    <?= $form->field($model, 'ctime')->textInput(); ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-full']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
